<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>体检套餐管理</title>
<%@ include file="/common/meta.jsp" %>
<script src="${ctx}/js/pe/PhysicalExamSet.js" type="text/javascript"></script>
<script src="${ctx}/js/table.js" type="text/javascript"></script>

<style>
 .fieldset{
  width: 80%;
  margin-left:8%;
 }
 
 #customers
  {
  font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse:collapse;
  }

#customers td, #customers th 
  {
  font-size:1em;
  border:1px solid #98bf21;
  padding:3px 7px 2px 7px;
  }

#customers th 
  {
  font-size:1.1em;
  text-align:left;
  padding-top:5px;
  padding-bottom:4px;
  text-align:center;
  background-color:#A7C942;
  color:#ffffff;
  }

#customers tr.alt td 
  {
  color:#000000;
  background-color:#EAF2D3;
  }
</style>

</head>
<body>
<div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal;align:left">当前位置：校园体检--体检套餐管理</div>
<form id="physicalExamInputForm" action="" method="get">
    <input type="hidden" id="id" name="id" value="${id}"/>
    <input type="hidden" id="itemParentId" name="itemParentId" value="${itemParentId}"/>
    <input type="hidden" id="itemId" name="itemId" value="${itemId}"/>
    <table width="80%" class="noborder" align="center">
	    <tr> 
	         <td width="10%" align="right">套餐名称:</td>
		     <td width="20%" align="left" ><s:select style="width:120px;margin-left:10px"  onchange='setInput()' theme="simple"  id="selectName" value="%{id}"emptyOption="true" listKey="id" listValue="name" list="physicalExamSetList"/><input type="text" id="inputName" name="inputName"  value="${inputName}" style="border: none;width: 100px;border-right-width: 0px;margin-left:-123px;height: 15px;margin-top: -20px" onkeyup="setSelect(this)"/></td>
	    	 <td width="10%" align="right">描述:</td>
	    	 <td width="20%" align="left" ><input type="text"  size="20" id="inputDesc"  name="inputDesc" value="${inputDesc}"/></td>
	    	 <td width="10%" align="right">费&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用:</td>
	    	 <td width="20%" align="left" ><input type="text"  size="20" id="inputTotal" value="${inputTotal}" name="inputTotal"/></td>
	    	 <td width="10%" align="right"><input  type="button" value="&nbsp;保&nbsp;存&nbsp;" onclick="save();"/></td>
	    </tr>
    </table>
    <p>
    <fieldset class="fieldset" title=""><legend title="" align="top">明细设置</legend>
    <p>
		     <table width="100%" class="noborder">
			    <tr>
				     <td width="10%" align="right">项目大类:</td>
				     <td width="20%" align="left" ><s:select cssStyle="width:150px" onchange="onClickLargeItem()" value="%{itemParentId}"  id="oneType" theme="simple" list="oneType" listKey="id" listValue="term" emptyOption="true"/></td>
			    	 <td width="10%" align="right"></td>
			    	 <td width="20%" align="left" ></td>
			    	 <td width="10%" align="right">检查项目</td>
			    	 <td width="20%" align="left" ><div id= "jcxm"><s:select cssStyle="width:150px" theme="simple"  value="%{itemId}" id="secondType" list="secondType" listKey="id" listValue="term"  emptyOption="true"/></div>  </td>
			    	 <td width="10%" align="right"><input type="button" value="&nbsp;添&nbsp;加&nbsp;" onclick="add();"/></td>
			    </tr>	    
		    </table>
		    <p>
		    <div id="content">
				<table width="100%" border="1" id="customers" >
					<tr>
					    <th>序号</th>
						<th>检查项目大类</th>
						<th>检查项目</th>
						<th>描述</th>
						<th>单价</th>
						<th>操作</th>
					</tr>
					
					<s:iterator  value="feeStandardInputList">
					<tr class="alt" >
					    <td>${id}</td>
						<td>${item.parent.term}</td>
						<td>${item.term}</td>
						<td>${description}</td>
						<td>${feeStd}/${numeraire}</td>
						<td>
							<a href="javascript:onClickDelete(${id})">删除</a>
						</td>
					</tr>
				</s:iterator>
				</table>
			</div> 
   	</fieldset>    
</form>
</body>
</html>